package com.logic.modular.game.player.info.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.comment.pojo.domain.logic.domain.Player;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

/**
 * 游戏账户(Player)表数据库访问层
 *
 * @author cxy
 * @since 2024-07-18 10:05:14
 */
public interface PlayerMapper extends BaseMapper<Player> {
    List<Player> obtainFreeRobot(int num);

    @Select("select uid from player where player.uid > 0 and player.uid <= 1000")
    List<Long> obtainRobotIds();

    List<Long> obtainMatchRobotIds(Long matchId);

    @Select("select uid from player where player.type = 1")
    Set<Long> obtainPlayerIds();
}

